<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Switch -AM[s,r] - archive name and time [save, restore]</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title">Switch <B>-AM[s,r]</B> - archive name and time
[save, restore]<hr></P>

<p>Switch -ams preserves the archive metadata, which includes the original
archive name and creation time. It can be used with archive modification
commands, such as <a href="HELPCmdA.htm">A</A> or <a href="HELPCmdCH.htm">CH</a>.</p>

<p>If used together with <a href="HELPSwTK.htm">-tk</a> or <a href="HELPSwTL.htm">-tl</a>
switches, -ams saves the archive modification time set by these switches.</p>

<p>Switch -amr renames an archive to saved name and sets the stored time
as both archive creation and modification time. It can be used together
with 'CH' command only, which ignores all other archive modification
switches if -amr is specified.</p>

<p>Switch -am without 's' and 'r' modifiers is treated as -ams.</p>

<p>Saved metadata is displayed on "Info" page of <a href="HELPCommandsInfo.htm">
Show information</a> command and can be restored on 
<a href="HELPInfoOptions.htm">Options</a> page of same command.</p>

<p>Supported for <a href="HELPRAR5Format.htm">RAR 5.0</a> archives only.</p>

<h1><b>Examples</b></h1>

<ol>
  <li> Create files.rar and save its metadata:</li>
</ol>
<blockquote>
  <p class="sample">WinRAR a -am files.rar</p>
</blockquote>
<ol start="2">
  <li> Restore the original name of myfiles.rar:</li>
</ol>
<blockquote>
  <p class="sample">WinRAR ch -amr myfiles.rar</p>
</blockquote>

</BODY>
</HTML>
